/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.integral.web.model.dto.manager;

import cn.hutool.core.bean.BeanUtil;
import com.medusa.gruul.integral.api.entity.IntegralRule;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Description: 积分规则dto
 * @Author: xiaoq
 * @Date : 2019/12/4 9:12
 */
@Data
@ApiModel(value = "积分规则的修改")
public class IntegralRuleDto {

	@ApiModelProperty(value = "积分规则表id")
	private Long integralRuleId;

	@ApiModelProperty(value = "积分商城id")
	private Long integralShopId;

	@ApiModelProperty(value = "积分有效期")
	private Integer integralValidity;

	@ApiModelProperty(value = "积分使用规则介绍")
	private String useRuleIntroduce;

	@ApiModelProperty(value = "积分值规则")
	private String integralRuleInfo;

	@ApiModelProperty(value = "积分值获取类型(0.分享 1.登入 2.签到 3.步数)")
	private Integer ruleType;

	@ApiModelProperty(value = "是否开启")
	private Boolean open;

	private List<IntegralRuleParameterDto> integralRuleParameterDtos;

	public IntegralRule coverIntegralRule() {
		IntegralRule integralRule = new IntegralRule();
		BeanUtil.copyProperties(this, integralRule);
		return integralRule;
	}
}
